package com.bjfu.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class MemberRequestDTO {

    @NotNull(message = "用户名不能为空")
    @Size(min = 3, max = 50, message = "用户名长度应在 3 到 50 个字符之间")
    private String username; // 用户名

    @NotNull(message = "密码不能为空")
    @Size(min = 8, message = "密码长度应至少为 8 个字符")
    private String password; // 密码

    private String avatar_url; // 头像URL

    private String research_field; // 研究方向
    private String name;//与用户名区分，这个name是真实姓名

    @NotNull(message = "申请理由不能为空")
    @Size(min = 5, max = 255, message = "申请理由长度应在 5 到 255 个字符之间")
    private String apply_reason; // 申请理由

    private Long team_id; // 团队ID
    private Integer role;//role应该为
    private String email;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }
// Getter 和 Setter 方法

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar_url() {
        return avatar_url;
    }

    public void setAvatar_url(String avatar_url) {
        this.avatar_url = avatar_url;
    }

    public String getResearch_field() {
        return research_field;
    }

    public void setResearch_field(String research_field) {
        this.research_field = research_field;
    }

    public String getApply_reason() {
        return apply_reason;
    }

    public void setApply_reason(String apply_reason) {
        this.apply_reason = apply_reason;
    }

    public Long getTeam_id() {
        return team_id;
    }

    public void setTeam_id(Long team_id) {
        this.team_id = team_id;
    }

    @Override
    public String toString() {
        return "MemberRequestDTO{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", avatar_url='" + avatar_url + '\'' +
                ", research_field='" + research_field + '\'' +
                ", name='" + name + '\'' +
                ", apply_reason='" + apply_reason + '\'' +
                ", team_id=" + team_id +
                ", role=" + role +
                ", email='" + email + '\'' +
                '}';
    }
}
